package com.jf.cloud.api.multishop.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "jfcloud-multishop",contextId = "indexImg")
public interface IndexImgFeignClient {

    /**
     * 根据店铺id和商品id修改轮播图跳转地址
     * @param spuId
     * @param shopId
     * @return
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/indexImg/udpateIndexImgBySpuId")
    ServerResponseEntity<Void> udpateIndexImgBySpuId(@RequestParam("spuId") Long spuId, @RequestParam("shopId") Long shopId);
}
